﻿@model BowlingDO.ViewModels.GroupViewModel

@{
    ViewBag.Title = Model.Title;    
}

<div class="row">
    <div class="col-xs-8">
        <h2>@Model.Title</h2>            
    </div>
    <div class="pull-right">
        <p>&nbsp;</p>
        <a href="@Url.Action("Create")" class="btn btn-warning">Nuevo Grupo</a>
    </div>
</div>

<div class="row">
    <p>&nbsp;</p>
    <table class="table table-responsive table-striped">
        <tbody>
            @foreach (var item in Model.Groups)
            {
                <tr>
                    <td>
                        <strong>
                            <a href="@Url.Action("Detail", new { item.Id })">@item.Name</a>
                        </strong>
                        <br />
                        <a href="#">@item.Description</a>
                    </td>
                    <td>
                        <a href="#">@item.Web</a>
                    </td>
                    <td>
                        @item.Created.Value.ToShortDateString()
                    </td>
                </tr>
            }
        </tbody>
    </table>
</div>
